home *** CD-ROM | disk | FTP | other *** search
/ Champak 112 / jogo-disk-112.iso / Games / ophelias_diary_2_episode_1.swf / scripts / DefineButton2_2129 / BUTTONCONDACTION on(release).as
Text File  |  2010-07-14  |  592b  |  25 lines

  1. on(release){
  2.    set("/Variables:Clues",1);
  3.    if(eval("../Movie/Machine/Manette:Manette") == 0 and eval("/Variables:Animatique") == 0 and getProperty("../Movie/Machine", _visible) == 1)
  4.    {
  5.       setProperty("../Movie/Prescott", _X, -5);
  6.       setProperty("../Movie/Prescott", _Y, 20);
  7.       tellTarget("../Movie")
  8.       {
  9.          gotoAndStop("Plan1");
  10.       }
  11.    }
  12.    else
  13.    {
  14.       tellTarget("../Movie")
  15.       {
  16.          gotoAndStop("Plan1");
  17.       }
  18.       tellTarget("../Movie/Animatiques")
  19.       {
  20.          gotoAndStop(1);
  21.       }
  22.       gotoAndStop(1);
  23.    }
  24. }
  25.